package com.wonders.app.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@TableName("tb_node")
public class NodeBean {
    @TableId
    private Long id ;
    private String name;
    private String type;

    @TableField("p_id")
    private Long pId;

    private String des ;
    private  String logo ;
    private   String  url ;


    @TableField(exist = false)
    public List<NodeBean> nodeBeanList = new ArrayList<>();

    //说明创建的东西，是不是需要默认。nor是需要
    @TableField(exist = false)
    private String kind ;



//    public NodeBean(Long id, String name, String parentId, String type) {
//        this.id = id;
//        this.name = name;
//        this.type = type;
//        this.pId = parentId;
//    }
//    public NodeBean(Long id, String name, String parentId) {
//        this.id = id;
//        this.name = name;
//        this.pId = parentId;
//    }


    public Long getpId() {
        return pId;
    }

    public void setpId(Long pId) {
        this.pId = pId;
    }

}
